package com.zn.mapper;

import com.zn.entity.FutureCloseOrder;
import java.util.List;
import java.util.Map;

import com.zn.web.dto.FuturesTradeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FutureCloseOrderMapper {

    int insertSelective(FutureCloseOrder record);
    FutureCloseOrder selectByPrimaryKey(String closeId);
    FutureCloseOrder selectByReportId(@Param("reportId")String reportId);
    int updateByPrimaryKeySelective(FutureCloseOrder record);
    List<FutureCloseOrder> selectCloseOrderByPage(Map<String,Object> map);
    List<FutureCloseOrder> selectRiskManagementOrder(Map<String,Object> map);

    //查询统计当天平仓交易数据
    List<FutureCloseOrder> findUserTradingClose(FuturesTradeDto futuresTradeDto);
}